﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Fractals
{
	public partial class HelpWindowKeystrokeCombinations : ChildWindow
	{
		public HelpWindowKeystrokeCombinations()
		{
			InitializeComponent();

			for (int i = 0; i < this.LayoutRoot.Children.Count; i++)
			{
				TextBlock tb = (TextBlock)this.LayoutRoot.Children[i];
				if (i % 2 == 0)
				{
					RowDefinition rd = new RowDefinition();
					rd.Height = GridLength.Auto;
					this.LayoutRoot.RowDefinitions.Add(rd);
				}
				
				tb.Margin = new Thickness(5);
				Grid.SetRow(tb, i/2);
				Grid.SetColumn(tb, i%2);
			}
		}

		private void OKButton_Click(object sender, RoutedEventArgs e)
		{
			this.DialogResult = true;
		}

		private void CancelButton_Click(object sender, RoutedEventArgs e)
		{
			this.DialogResult = false;
		}
	}
}

